<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑加油站</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: url('/images/2.jpg') no-repeat center center fixed;
            background-size: cover;
            font-family: "微软雅黑", sans-serif;
        }

        .main-content {
            margin-left: 200px;
            padding: 20px;
            background-color: rgba(255, 255, 255, 0.5);
            min-height: calc(100vh - 50px);
        }

        .breadcrumb {
            margin-bottom: 20px;
            color: #0e0e0e;
        }

        .form-container {
            background-color: white;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            max-width: 600px;
            margin: 0 auto;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .form-group input {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        .btn-submit {
            background-color: #5cb85c;
            color: white;
            padding: 10px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .btn-cancel {
            background-color: #d9534f;
            color: white;
            padding: 10px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            margin-left: 10px;
        }
    </style>
</head>
<body>
<!-- 引入顶部导航栏 -->
<div th:replace="~{common/common::topbar}"></div>

<!-- 引入侧边栏并设置当前激活项 -->
<div th:replace="~{common/common::sidebar}"></div>

<!-- 主体内容区域 -->
<div class="main-content">
    <div class="breadcrumb">
        <a href="/login.html">系统首页</a> >
        <a href="/station_info/list">加油站信息管理</a> > 编辑加油站
    </div>

    <div class="form-container">
        <form th:action="@{/station_info/update}" method="post">
            <input type="hidden" name="id" th:value="${station.id}">
            <div class="form-group">
                <label for="stationName">加油站名称</label>
                <input type="text" id="stationName" name="stationName" th:value="${station.stationName}" required>
            </div>
            <div class="form-group">
                <label for="address">地址</label>
                <input type="text" id="address" name="address" th:value="${station.address}" required>
            </div>
            <div class="form-group">
                <label for="responsiblePerson">负责人</label>
                <input type="text" id="responsiblePerson" name="responsiblePerson" th:value="${station.responsiblePerson}" required>
            </div>
            <div class="form-group">
                <button type="submit" class="btn-submit">保存</button>
                <a href="/station_info/list" class="btn-cancel">取消</a>
            </div>
        </form>
    </div>
</div>
</body>
</html>